<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//VN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="vn" lang="vn" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta property="og:title" content="<?php if (!empty($recipe)) { echo $recipe['Recipe']['name']; } else { echo $this->pageTitle; } ?>"/>
<meta property="og:type" content="food"/>
<meta property="og:url" content="http://cooking.saigonshare.net/<?php echo $this->params['url']['url']; ?>/"/>
<?php if (!empty($recipe)) { ?><meta property="og:image" content="<?php echo 'http://cooking.saigonshare.net'.$upload->url($recipe["Recipe"], "Recipe.image", "thumb"); ?>"/><?php } ?>

<meta property="fb:admins" content="808239546"/>
<meta property="og:site_name" content="Nghệ Thuật Nấu Ăn"/>

<title><?php echo $this->pageTitle; ?></title>
<?php
echo $html->css('tools');
echo $html->css('typo');
echo $html->css('forms');
echo $html->css('layout-navtop-subright');
echo $html->css('layout');
echo $html->css('lightbox');
echo $html->meta('icon', $html->url('/favicon.ico'));
echo $html->meta('shortcut icon', $html->url('/favicon.ico'));
$seo_info = !empty($recipe) ? ", ".$recipe["Recipe"]["name"] : "";
echo $html->meta(
		'keywords',
		'kỹ thuật nấu ăn, cách làm, cách chuẩn bị, cách nấu, cách chế biến, cách, làm, nấu, chế biến, công thức'.$seo_info
);
echo $html->meta(
		'description',
		'Cách làm, cách chuẩn bị, cách nấu, cách chế biến, cách trình bày, cách làm, công thức'.$seo_info
);
if (isset($javascript))
{
	echo $javascript->link('prototype');
	//echo $javascript->link('scriptaculous');
	echo $javascript->link('effects');
	echo $javascript->link('builder');
	echo $javascript->link('lightbox');
	//echo $javascript->link('avim/avim');
};
$current_controller = $this->params["controller"];
$current_action = $this->params["action"];
$current_location = $current_controller."_".$current_action;
?>

</head>
<body id="page-home">
<div id="page">
	<!--/* OpenX Javascript Tag v2.8.6-rc2 */-->

	<!--/*
	  * The backup image section of this tag has been generated for use on a
	  * non-SSL page. If this tag is to be placed on an SSL page, change the
	  *   'http://d1.openx.org/...'
	  * to
	  *   'https://d1.openx.org/...'
	  *
	  * This noscript section of this tag only shows image banners. There
	  * is no width or height in these banners, so if you want these tags to
	  * allocate space for the ad before it shows, you will need to add this
	  * information to the <img> tag.
	  *
	  * If you do not want to deal with the intricities of the noscript
	  * section, delete the tag (from <noscript>... to </noscript>). On
	  * average, the noscript tag is called from less than 1% of internet
	  * users.
	  */-->
	
	<script type='text/javascript'><!--//<![CDATA[
	   var m3_u = (location.protocol=='https:'?'https://d1.openx.org/ajs.php':'http://d1.openx.org/ajs.php');
	   var m3_r = Math.floor(Math.random()*99999999999);
	   if (!document.MAX_used) document.MAX_used = ',';
	   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
	   document.write ("?zoneid=167041");
	   document.write ('&amp;cb=' + m3_r);
	   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
	   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
	   document.write ("&amp;loc=" + escape(window.location));
	   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
	   if (document.context) document.write ("&context=" + escape(document.context));
	   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
	   document.write ("'><\/scr"+"ipt>");
	//]]>--></script><noscript><a href='http://d1.openx.org/ck.php?n=ada84964&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://d1.openx.org/avw.php?zoneid=167041&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=ada84964' border='0' alt='' /></a></noscript>
	<div id="header" class="clearfix">
		<div id="branding">
			<h1>Nghệ Thuật Nấu Ăn <span style="height:48px;"><?php echo $html->image("boiler-pan-icon.png"); ?></span></h1>
			<p>Tặng vợ yêu.</p>
			<?php //debug($this->params); ?>
			<?php //debug($_ENV); ?>
			<?php //debug($_GET); ?>
		</div>
		<!-- end branding -->
			<?php echo $this->element("search"); ?>
		<hr>
	</div>
	<!-- end header -->
	<div id="content" class="clearfix">
		<div id="main">
			<div id="cse" style="width:100%;display:none;"></div>
			<div id="content_for_layout"><?php echo $content_for_layout; ?></div>
			<hr>
		</div>
		<!-- end main -->
		<div id="sub">
			<?php echo $this->element("login"); ?>
			<p class="line"></p>
			<?php echo $html->link("<strong>Phần mềm Xin Xâm iPhone</strong>", "http://www.pira-entertainment.com/index.php?categoryid=1&p2_articleid=4", array('target' => '_blank', 'style' => 'text-decoration: underline;', 'escape' => false)); ?>
			<?php echo $html->link($html->image('art-work-75.png', array('style' => 'margin: 3px 3px;')), "http://www.pira-entertainment.com/index.php?categoryid=1&p2_articleid=4", array('target' => '_blank', 'style' => 'text-decoration: underline;', 'escape' => false)); ?>
			<p style="font-size: 10px;">Lời khuyên cho những rắc rối trong cuộc sống<br />
			Lắc iPhone để có ngay 1 trong 100 que xâm<br />
			Xin xâm ở bất cứ nơi đâu</p>
			<p class="line"></p>
			<h2>Chia Sẻ</h2>
			<p><?php echo $html->link("Tôi biết nấu món...", array("controller" => "recipes", "action" => "add")); ?></p>
			<p class="line"></p>
			<?php echo $this->element("random_recipes"); ?>

			<?php if (!empty($recipe_category_id)) { ?>
			<?php echo $this->element("same_category_recipes", array("recipe_category_id" => $recipe_category_id)); ?>
			<?php } ?>

			<?php //echo $this->element("recently_talked_recipes"); ?>
			<?php //echo $this->element("favorite_recipes"); ?>
			<p class="line"></p>
			<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2F%23%21%2Fpages%2FReal-Kau-Cim-Consult-the-Oracle%2F138015016243407%3Fref%3Dts&amp;width=200&amp;connections=0&amp;stream=false&amp;header=false&amp;height=62" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200px; height:62px;" allowTransparency="true"></iframe>
			<p class="line"></p>
			<fb:fan profile_id="321007928890" stream="0" connections="6" logobar="1" width="200"></fb:fan><div style="font-size:8px; padding-left:10px"><a href="http://apps.facebook.com/nghe_thuat_nau_an/">Nghệ Thuật Nấu Ăn</a> on Facebook</div>
			<p class="line"></p>
			<fb:login-button v="2" size="small" onlogin="window.location.reload(true);">Kết nối với Facebook</fb:login-button>
			<p class="line"></p>
			<fb:bookmark></fb:bookmark>
		</div>
		<!-- end sub -->
		<div id="local">
			<h2>Local</h2>
			<ul>
			<!--
				<li><a href="somewhere.html">Content page 1</a></li>
				<li><a href="somewhere.html">Content page 2</a></li>
				<li><a href="somewhere.html">Content page 3</a></li>
				<li><a href="somewhere.html">Content page 4</a></li>
				<li><a href="somewhere.html">Content page 5</a></li>
				<li><a href="somewhere.html">Content page 6</a></li>
			-->
			</ul>
		</div>
		<!-- end sub -->
		<?php echo $this->element("navigator"); ?>
	</div>
	<!-- end content -->
	<div id="footer" class="clearfix">
		<div id="divider">
			<div></div>
		</div>
		<span class="left"><?php echo $html->link("Các Điều Khoản Thỏa Thuận Về Sử Dụng Dịch Vụ", array("controller" => "accounts", "action" => "terms_and_conditions")); ?> | by <a href="mailto:teefan82@yahoo.com">Teefan</a> </span> <span class="right">Copyright <?php echo date("Y", time()); ?> © Teefan</span> </div>
	<!-- end footer -->
</div>
<!-- end page -->
<div id="extra1"> </div>
<div id="extra2"> </div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-8015694-2");
pageTracker._setDomainName(".saigonshare.net");
pageTracker._trackPageview();
} catch(err) {}</script>
<!-- Start Quantcast tag -->
<script type="text/javascript">
_qoptions={
qacct:"p-57zDOwUI4-QzI"
};
</script>
<script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script>
<noscript>
<img src="http://pixel.quantserve.com/pixel/p-57zDOwUI4-QzI.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/>
</noscript>
<!-- End Quantcast tag -->
<script type="text/javascript">
		__compete_code = 'ba0eb07f370eaa6d35bd13df44c0d565';
		(function () {
				var s = document.createElement('script'),
						d = document.getElementsByTagName('head')[0] ||
								document.getElementsByTagName('body')[0],
						t = 'https:' == document.location.protocol ?
								'https://c.compete.com/bootstrap/' :
								'http://c.compete.com/bootstrap/';
				s.src = t + __compete_code + '/bootstrap.js';
				s.type = 'text/javascript';
				s.async = 'async';
				if (d) { d.appendChild(s); }
		}());
</script>
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<script type="text/javascript"> FB.init("91f782b49fd00cfd16faba8cf2089732", "/fb_connect/xd_receiver.htm"); </script>
<!-- Note: Include this div markup as a workaround for a known bug in this release on IE where you may get a "operation aborted" error --> <div id="FB_HiddenIFrameContainer" style="display:none; position:absolute; left:-100px; top:-100px; width:0px; height: 0px;"></div>
<script type="text/javascript">
if (top != self)
{
	FB_RequireFeatures(["CanvasUtil"], function(){ FB.XdComm.Server.init("/fb_connect/xd_receiver.htm"); FB.CanvasClient.startTimerToSizeToContent(); });
}
</script>
<?php //} ?>
</body>
</html>